﻿using System;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace Zero.WebAPI.Framework.Security.Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("ApiAccessLog")]
    public partial class ApiAccessLog
    {
           public ApiAccessLog(){


           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>
		   [SugarColumn(IsPrimaryKey=true,ColumnName ="ID",ColumnDescription = "",Length = 20)]
		   [Required]
		   public long ID {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="Url",ColumnDescription = "",Length = 255)]
		   public string Url {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="Method",ColumnDescription = "",Length = 20)]
		   public string Method {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="QueryString",ColumnDescription = "",Length = 255)]
		   public string QueryString {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="ExecuteTime",ColumnDescription = "",Length = 11)]
		   public long? ExecuteTime {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="StatusCode",ColumnDescription = "",Length = 11)]
		   public int? StatusCode {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="Msg",ColumnDescription = "",Length = 255)]
		   public string Msg {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="OriginIP",ColumnDescription = "",Length = 64)]
		   public string OriginIP {get; set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
		   [SugarColumn(ColumnName ="AccessTime",ColumnDescription = "",Length = 0)]
		   public DateTime? AccessTime {get; set;}

    }
}
